<tagLib name="html" />
<include file="../Public/header" />
<div id="wrap"> <include file="../Public/top" />
  <div id="content">
    <div class="mainarea">
      <div class="maininner">
        <div class="bdrcontent">
          <form id="phpform" method="post" action="__URL__/update" enctype="multipart/form-data">
          <input type="hidden" name="id" value="{$vo.id}" />
            <table width="100%" cellpadding="0" cellspacing="0" class="formtable">
              <tr>
                <td width="200">title：</td>
                <td><input name="title" type="text" style="width:260px;" id="title" value="{$vo.title}"  /></td>
              </tr>
              <tr>
                <td>请选择分类：</td>
                <td><select name="categoryID" id="categoryID">
                    <option value="0">无上级分类</option>
                    <volist name="category" id="category">
                      <option value="{$category.id}">{$category.name}</option>
                    </volist>
                  </select>                </td>
              </tr>
              <tr>
                <td>content：</td>
                <td><html:editor type="fckeditor"  id="editor" width="550px" height="245px" name="content" content="{$vo.content}" /></td>
              </tr>
              <present name="vo['imgUrl']">
              <tr>
                <td>图片预览</td>
                <td><img src="__ROOT__/{$vo.imgUrl}" border="0" /></td>
              </tr>
              </present>
              <tr>
                <td>新闻图片：</td>
                <td><input type="file" name="file1" id="file1" /></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td><input type="submit" value="提交" class="submit" />
                  <input name="reset" type="reset" value="重置" class="submit" />
                  <input name="button" type="button" value="返回" onclick="javascript:history.go(-1);"  class="submit" /></td>
              </tr>
            </table>
          </form>
        </div>
        <br />
      </div>
    </div>
    <include file="../Public/menu" /> </div>
  <include file="../Public/footer" /> </div>
</body></html>

<script type="text/javascript">
$(document).ready(function()
{
	$('#categoryID option[@value="{$vo.categoryID}"]').attr('selected','selected');
	
});
</script>
